package com.cloud.pole.shop.model.entity.order;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.validator.constraints.NotEmpty;

import lombok.Data;

/**
 * @author 
 */
@Table(name="shop_order_comment")
@Data
public class ShopOrderComment implements Serializable {
	/**
	 * 删除标志（0：否 1：是）
	 */
	public static final int DELETE_FLAG_YES = 1;
	public static final int DELETE_FLAG_NO = 0;
	
	/**
	 * 星级（1：生气 2：失望 3：一般 4：满意.5：非常满意）
	 */
	public static final int STAR_NUM_ONE = 1;
	public static final int STAR_NUM_TWO = 2;
	public static final int STAR_NUM_THREE = 3;
	public static final int STAR_NUM_FOUR = 4;
	public static final int STAR_NUM_FIVE = 5;
	
	/**
	 * 评论状态（0：无效 1：有效）
	 */
	
	public static final int COMMENT_STATUS_OK   = 1;
	public static final int COMMENT_STATUS_ERROR = 0;
	
	/**
	 * 评论类型（bad：差评 common:中评 good：好评）
	 */
	
	public static final String COMMENT_TYPE_BAD   = "bad";
	public static final String COMMENT_TYPE_COMMON   = "common";
	public static final String COMMENT_TYPE_GOOD    = "good";
	
    /**
     * 评论id
     */
    @Id
    @Column(name="comment_id")
    private Long commentId;

    /**
     * 评论内容
     */
    @Column(name="comment_content")
    private String commentContent;

    /**
     * 回复内容
     */
    @Column(name="reply_content")
    private String replyContent;

    /**
     * 评论状态（0：无效 1：有效）
     */
    @Column(name="comment_status")
    private Integer commentStatus;

    /**
     * 创建时间
     */
    @Column(name="comment_time")
    private Date commentTime;

    /**
     * 用户id
     */
    @Column(name="user_id")
    private Long userId;

    /**
     * 用户名登录名
     */
    @Column(name="user_name")
    private String userName;

    /**
        * 用户昵称
     */
    @Column(name="user_nick_name")
    private String userNickName;
    
   
    /**
     * 产品id
     */
    @Column(name="goods_id")
    private Integer goodsId;

    /**
     * 店铺id
     */
    @Column(name="shop_id")
    private Integer shopId;

    /**
     * 订单id
     */
    @Column(name="order_sn")
    private String orderSn;

    /**
     * 删除标志（0：否 1：是）
     */
    @Column(name="delete_flag")
    private Integer deleteFlag;

    /**
     * 删除时间
     */
    @Column(name="delete_time")
    private Date deleteTime;

    /**
     * 星级（1：生气 2：失望 3：一般 4：满意.5：非常满意）
     */
    @Column(name="star_num")
    private Integer starNum;
    
    /**
     * 商户ID
     */
    public Integer merchantId;

    private static final long serialVersionUID = 1L;
}